home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C++ / Applications / NeuroSim 1.0 / .h / NS_Types.h < prev    next >
Text File  |  1996-02-19  |  2KB  |  82 lines

  1. // ===========================================================================
  2. //    NS_Types.h                    ©1996 Timo Eloranta
  3. // ===========================================================================
  4. //  Types, structs and constants used by the NeuroSim application
  5.  
  6. #ifndef _H_NS_Types
  7. #define _H_NS_Types
  8.  
  9. #ifdef __MWERKS__
  10. #pragma once
  11. #endif
  12.  
  13. #include <PP_Types.h>        // Int16 == short,    Uint16 == unsigned short
  14.                             // Int32 == long,    Uint32 == unsigned long
  15.  
  16. struct    SGenParams {
  17.     Int16    xLengthAvg,        // Average X-length
  18.             yLengthAvg;        // Average Y-length
  19.     Uint16    xLengthDev,        // The amount that the X-length is 
  20.                             // allowed to differ (+/-) from xLengthAvg 
  21.             yLengthDev,        // The amount that the Y-length is 
  22.                             // allowed to differ (+/-) from yLengthAvg 
  23.             size,            // Size (n x n) of the neuron matrix    
  24.             qtyMin,            // Minimum number of connections
  25.             qtyMax;            // Maximum number of connections ( >= qtyMin )
  26. };
  27.  
  28. //    • NeuroSim commands
  29.  
  30. #define cmd_Params                    2000
  31. #define cmd_SetParams                -2000
  32. #define cmd_Demo                    2001
  33.  
  34. //    • Resource IDs
  35.  
  36. #define snd_Click                    200
  37. #define snd_Zap                        201
  38.  
  39. #define STRx_Menus                    400
  40. #define str_StartDemo                1
  41. #define str_StopDemo                2
  42.  
  43. #define pane_NeuralNet                1500
  44.  
  45. #define    WIND_NeuroSim                1000
  46. #define    WIND_NeuroSimAbout            1001
  47. #define WIND_Params                    2000
  48.  
  49. #define ALRT_About                    128
  50. #define ALRT_Offscreen                130
  51. #define ALRT_MinMax                    131
  52.  
  53. //    • --- "Parameters" dialog ---
  54.  
  55. #define slid_Size                    2001
  56. #define capt_Size                    2002
  57. #define edit_Qty_Min                2003
  58. #define edit_Qty_Max                2004
  59. #define edit_Avg_x                    2005
  60. #define edit_Dev_x                    2006
  61. #define edit_Avg_y                    2007
  62. #define edit_Dev_y                    2008
  63.  
  64. #define pict_Base                    200            
  65. #define pict_Slider                    201    
  66. #define pict_Selected                202    
  67. #define but_Factory                    3097
  68. #define msg_FactorySettings            5000
  69.  
  70. //  • Defaults
  71.  
  72. #define    DEFAULT_NET_SIZE            10
  73. #define    DEFAULT_QTY_MIN                1
  74. #define    DEFAULT_QTY_MAX                7
  75. #define    DEFAULT_LENGTH_X_AVG        1
  76. #define    DEFAULT_LENGTH_X_DEV        3
  77. #define    DEFAULT_LENGTH_Y_AVG        0
  78. #define    DEFAULT_LENGTH_Y_DEV        4
  79.  
  80.  
  81. #endif    // _H_NS_Types
  82.